<div class="rightMenu">
	<div class="headerMenu">
		<h4>QUẢN LÝ NHACSO.NET</h4>
	</div>
    <?php $group = $_SESSION['user']['IsAdmin'];?>
	<ul class="menu">

        <!--DashBoard-->
        <?php if($group==1 || $group==2){?>
        <li>
            <div class="level <?php if($this->strControllerName == 'index' || $this->strControllerName == 'statistic') echo 'selectitem';?>"><a href="<?php echo BASE_URL . '/backend'; ?>">DashBoard</a></div>
        </li>
        <?php } ?>
        <!--Quản lý User Admin-->
        <?php if($group==1){?>
        <li>
            <div class="level <?php if($this->strControllerName == 'admin') echo 'selectitem';?>"><a href="<?php echo BASE_URL . '/backend/admin'; ?>">Quản lý User Admin</a></div>
        </li>
        <?php } ?>

        <!--Quản lý User-->
        <?php if($group==1 || $group==2){?>
        <li>
            <div class="level <?php if($this->strControllerName == 'account' && $this->strActionName == 'index') echo 'selectitem';?>"><a href="<?php echo BASE_URL . '/backend/account'; ?>">Quản lý User</a></div>
        </li>
        <li>
            <div class="level <?php if($this->strControllerName == 'account' && $this->strActionName == 'checkip') echo 'selectitem';?>">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="<?php echo BASE_URL . '/backend/account/checkip'; ?>">Check IP region</a></div>
        </li>
        <!-- Check IP -->
        <li>
            <div class="level <?php if($this->strControllerName == 'comment') echo 'selectitem';?>"><a href="<?php echo BASE_URL . '/backend/comment'; ?>">Quản lý Comment</a></div>
        </li>
        <?php } ?>

        <!--Danh mục-->
        <?php if($group==1){?>
        <li>
            <div class="level <?php if($this->strControllerName == 'category') echo 'selectitem';?>"><a href="<?php echo BASE_URL . '/backend/category'; ?>">Danh mục</a></div>
        </li>
        <?php } ?>

        <?php if($group==1 || $group==2){?>
        <!--Tab Manager-->
        <li>
            <div class="level <?php if($this->strControllerName == 'menutopartist' || $this->strControllerName == 'menutoptag') echo 'selectitem';?>"><a href="<?php echo BASE_URL . '/backend/menutopartist'; ?>">Tab Menu</a></div>
        </li>
        <?php } ?>

        <?php if($group==1 || $group==2){?>
        <!--Tag-->
        <li>
            <div class="level <?php if($this->strControllerName == 'tag') echo 'selectitem';?>"><a href="<?php echo BASE_URL . '/backend/tag'; ?>">Tag</a></div>
        </li>

        <!--Tag Search-->
        <li>
            <div class="level <?php if($this->strControllerName == 'songtag' || $this->strControllerName == 'albumtag') echo 'selectitem';?>"><a href="<?php echo BASE_URL . '/backend/songtag'; ?>">Tag Search</a></div>
        </li>
        <!--Report Category and Tag-->
        <li>
            <div class="level <?php if($this->strControllerName == 'reportcatetag') echo 'selectitem';?>"><a href="<?php echo BASE_URL . '/backend/reportcatetag'; ?>">Report Category and Tag</a></div>
        </li>
        <!--Playlist-->
        <li>
            <div class="level <?php if($this->strControllerName == 'playlist') echo 'selectitem';?>"><a href="<?php echo BASE_URL . '/backend/playlist'; ?>">Playlist</a></div>
        </li>
        <?php } ?>

        <!--Album-->
        <li>
            <div class="level <?php if($this->strControllerName == 'album') echo 'selectitem';?>"><a href="<?php echo BASE_URL . '/backend/album'; ?>">Album</a></div>
        </li>

        <!--Bài hát-->
        <li>
            <div class="level <?php if($this->strControllerName == 'song') echo 'selectitem';?>"><a href="<?php echo BASE_URL . '/backend/song'; ?>">Bài hát</a></div>
        </li>
        <?php if($group==1){?>
        <!-- Black list song title -->
        <li>
            <div class="level <?php if($this->strControllerName == 'blacklist') echo 'selectitem';?>">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="<?php echo BASE_URL . '/backend/blacklist'; ?>">Black list</a></div>
        </li>
        <?php } ?>
        <!--Video-->
        <li>
            <div class="level <?php if($this->strControllerName == 'video') echo 'selectitem';?>"><a href="<?php echo BASE_URL . '/backend/video'; ?>">Video</a></div>
        </li>

        <!--Nghệ sĩ-->
        <li>
            <div class="level <?php if($this->strControllerName == 'artist') echo 'selectitem';?>"><a href="<?php echo BASE_URL . '/backend/artist'; ?>">Nghệ sĩ</a></div>
        </li>


        <?php if($group==1 || $group==2){?>
        <!--Nghệ sĩ mới-->
        <li>
            <div class="level <?php if($this->strControllerName == 'artistdraft') echo 'selectitem';?>"><a href="<?php echo BASE_URL . '/backend/artistdraft'; ?>">Nghệ sĩ mới</a></div>
        </li>
        <!--Tin tức nghệ sĩ-->
        <li>
            <div class="level <?php if($this->strControllerName == 'newsartist') echo 'selectitem';?>"><a href="<?php echo BASE_URL . '/backend/newsartist'; ?>">Tin tức nghệ sĩ</a></div>
        </li>
        <!--Nhà sản xuất-->
        <li>
            <div class="level <?php if($this->strControllerName == 'producer') echo 'selectitem';?>"><a href="<?php echo BASE_URL . '/backend/producer'; ?>">Nhà sản xuất</a></div>
        </li>
        <!--Top-->
        <li>
            <div class="level <?php if($this->strControllerName == 'topsong' || $this->strControllerName == 'topartist' || $this->strControllerName == 'topmember' || $this->strControllerName == 'topplaylist' || $this->strControllerName == 'advalbum' || $this->strControllerName == 'topvideo' || $this->strControllerName == 'hotevent' ) echo 'selectitem';?>"><a href="<?php echo BASE_URL . '/backend/topsong'; ?>">Top / Hot</a></div>
        </li>
        <!--Báo xấu-->
        <li>
            <div class="level <?php if($this->strControllerName == 'bad') echo 'selectitem';?>"><a href="<?php echo BASE_URL . '/backend/bad'; ?>">Báo xấu</a></div>
        </li>
        <!--Event-->
        <li>
            <div class="level <?php if($this->strControllerName == 'christmas' || $this->strControllerName == 'dashboard') echo 'selectitem';?>"><a href="<?php echo BASE_URL . '/backend/christmas'; ?>">Christmas 2011</a></div>
        </li>
        <!--Playlist-->
        <li>
            <div class="level <?php if($this->strControllerName == 'christplaylist') echo 'selectitem';?>">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="<?php echo BASE_URL . '/backend/christplaylist'; ?>">Playlist dự thi</a></div>
        </li>
        <li>
            <div class="level <?php if($this->strControllerName == 'accountevent') echo 'selectitem';?>">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="<?php echo BASE_URL . '/backend/accountevent'; ?>">User dự thi</a></div>
        </li>
        
        <li>
            <div class="level <?php if($this->strControllerName == 'notice') echo 'selectitem';?>">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="<?php echo BASE_URL . '/backend/christmas/notice'; ?>">Thông báo</a></div>
        </li>
        <li>
            <div class="level <?php if($this->strControllerName == 'resultevent') echo 'selectitem';?>">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="<?php echo BASE_URL . '/backend/resultevent'; ?>">Kết quả dự thi</a></div>
        </li>
        <li>
            <div class="level <?php if($this->strControllerName == 'sendmail') echo 'selectitem';?>">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="<?php echo BASE_URL . '/backend/christmas/sendmail'; ?>">Gửi email</a></div>
        </li>
        <!-- Ringtune -->
        <li>
            <div class="level <?php if($this->strControllerName == 'ringtune') echo 'selectitem';?>"><a href="<?php echo BASE_URL . '/backend/ringtune'; ?>">Nhạc chờ</a></div>
        </li>
        <!-- Billboard -->
        <li>
            <div class="level <?php if($this->strControllerName == 'billboard') echo 'selectitem';?>"><a href="<?php echo BASE_URL . '/backend/billboard'; ?>">Bảng xếp hạng</a></div>
        </li>
        <li>
            <div class="level <?php if($this->strControllerName == 'billboard' && ($this->strActionName == 'index' || $this->strActionName == 'public')) echo 'selectitem';?>">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="<?php echo BASE_URL . '/backend/billboard'; ?>">Trong nước</a></div>
        </li>
        <li>
            <div class="level <?php if($this->strControllerName == 'billboard' && $this->strActionName == 'foreign') echo 'selectitem';?>">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="<?php echo BASE_URL . '/backend/billboard/foreign'; ?>">Nước ngoài</a></div>
        </li>
        <?php } ?>
        <!--Thoát-->
        <li>
			<div class="level <?php if($this->strControllerName == 'login') echo 'selectitem';?>"><a href="<?php echo BASE_URL . '/backend/login/logout'; ?>">Thoát (<b><i><?php echo $_SESSION['user']['username'];?></i></b>)</a></div>
		</li>
	</ul>
    <?php
        if($_SESSION['user']['username'] == 'nguyentt')
        {
    ?>
        <div class="headerMenu" >
            <h4>
                <div style="color: RED;">Cache NhacSo</div>
            </h4>
        </div>

        <ul class="menu" id="cache_nhacso">
            <li>
                <div class="level <?php if($this->strControllerName == 'cachens') echo 'selectitem';?>"><a href="<?php echo BASE_URL . '/backend/cachens/index'; ?>">List Cache</a></div>
            </li>
            <!--<li>
                <div class="level <?php if($this->strControllerName == 'cachens') echo 'selectitem';?>"><a href="<?php echo BASE_URL . '/backend/cachens/script'; ?>">Script</a></div>
            </li>-->
        </ul>
        <!--<div  id="cache_block">
            <div class="headerMenu" >
                <h4>
                    <div style="color: RED;">Cache Block</div>
                </h4>
            </div>
            <ul class="menu">
                <li>
                    <div class="level <?php if($this->strControllerName == 'cacheblock') echo 'selectitem';?>"><a href="<?php echo BASE_URL . '/backend/cacheblock/index'; ?>">List Cache</a></div>
                </li>
                <li>
                    <div class="level <?php if($this->strControllerName == 'cacheblock') echo 'selectitem';?>"><a href="<?php echo BASE_URL . '/backend/cacheblock/script'; ?>">Script</a></div>
                </li>
            </ul>
        </div>-->
        <div class="headerMenu">
            <h4>
                <div style="color: RED;">Solr</div>
            </h4>
        </div>
        <ul class="menu" id="solr">
            <li>
                <?php
                $selectItem='';
                if($this->strControllerName == 'solr' && ($this->strActionName == 'songlist' || $this->strActionName == 'songedit'))
                {
                    $selectItem = 'selectitem';
                }
                ?>
                <div class="level <?php echo $selectItem;?>"><a href="<?php echo BASE_URL . '/backend/solr/songlist'; ?>">Song</a></div>
            </li>
            <li>
                <?php
                $selectItem='';
                if($this->strControllerName == 'solr' && ($this->strActionName == 'videolist' || $this->strActionName == 'videoedit'))
                {
                    $selectItem = 'selectitem';
                }
                ?>
                <div class="level <?php echo $selectItem;?>"><a href="<?php echo BASE_URL . '/backend/solr/videolist'; ?>">Video</a></div>
            </li>
            <li>
                <?php
                $selectItem='';
                if($this->strControllerName == 'solr' && ($this->strActionName == 'albumlist' || $this->strActionName == 'albumedit'))
                {
                    $selectItem = 'selectitem';
                }
                ?>
                <div class="level <?php echo $selectItem;?>"><a href="<?php echo BASE_URL . '/backend/solr/albumlist'; ?>">Album</a></div>
            </li>
            <li>
                <?php
                $selectItem='';
                if($this->strControllerName == 'solr' && ($this->strActionName == 'artistlist' || $this->strActionName == 'artistedit'))
                {
                    $selectItem = 'selectitem';
                }
                ?>
                <div class="level <?php echo $selectItem;?>"><a href="<?php echo BASE_URL . '/backend/solr/artistlist'; ?>">Artist</a></div>
            </li>
        </ul>
    <?php
        }
    ?>
</div>